R program for assignment 2

R program for assignment 2 , in addition to cache , its also capable of
converting a vector to a square matrix if the matrix is eligible for so.
Revert "R program for assignment 2"

This reverts commit 69c0a40df8e8ac26789e9ff2ca5e138e21da0821.