Added functionality to check if matrix is symmetric or not. To be used in subsequent function