debug tool modification part1

Implemented showSimilarity same way as displayRelevantVisualWords was
implemented in original project., renamed it to showWord.