A Machine Learning Algorithm for Material Property Predictions