cache matrix function added (solve) using cache vector as template
Assignment used solve() function and cache vector template