hacks to get cosine similarity to work:
-subtracted matrix size by 21 (abstract/interfaces/empty methods)