Added function bodies

As defined in assignment 2, the function bodies for the create cache
and caches solve functions have been completed.