How to run a shazam-like algorithm