query top10alg2 fixed
second algorithm added