I'm not at all familiar with least square methods. So, I'd be quite grateful if somebody could finish what I stated with this problem. Thanks.
I rewrote the solution, please have another look now.