added setters and getters, impled solve.. need to check if mat is square