Add git ignore
Working version of cached matrix functions