Fixed unassigned models bug (RIFS), added kmeans and spectral
cluastering