Vectorized Part 2.4 and working. Working on Cosine Similarity Kernel