PlaceKnots function

Automatically place knots according to data