Adding square distance fitting. Finetuning required.
Added quadratic distribution of points about the minima.
Cleaned up code, added comments and a few prompts.