Solution + alt solution

had a makeCachMatrix2 class with a more reliable design