Cache Matrix calculation

Complete assignment on Cache Matrix calculation