fixed an error in ConsiderForContext()
Changed distance function to 1-Cosine, added k-maxing operation