Cleaned common/* by creating a common sum_square base function : Preparing for the full Morée test, and possibly levenberg-marquadt