Fix a few bugs in the code to recalculate ranks. Put some quick check code in to get an idea of how quickly we can calculate cosine similarities for a large (10k) subset of users.