Vector Angular Similarity Measure - Coding problem | OneNoughtOne