added degree information to machine learning
added cross-validation