Solution to Assignment 2

Very similar to sample cacheVector code provided in README.