cachematrix

minor edits