Added sparse vector class with similarity function