Adaptive knot Placement for Nonparametric Regression