trying to parallelize similarity computtaion