First commit cachematrix edited. Accurate solution added