R programming Assignment : Cache Matrix implementation