My completed code for Programming Assignment 2 to cache values of costly functions