Structure Prediction of Proteins Using Nearest Neighbor Trees