Cache matrix functions and documentation added for R programming assignment 2.