added free functions to get interpolated values for beziers and made the classes use these functions