Begun sorting monomes, doesn't work yet