Nonparametric Link Prediction in Dynamic Networks