Fits a catenary to given points