fixed bug in initializing similarity matrix