perf(index): use dot distance for cosine in FlatFloatStorage (#7777)