Edited cachematrix.R, added solution - version 1