fix bug in svg parser
Usage of least squares in curve fitting