Resolution of linear systems

Add to functions to solve linear system with square matrix or using Least Square