Started updating the model so that it uses Mahout matrices instead of HashMaps