Bug fixed - Add similarity matrix function