Fast approximate max-correlation queries