Implement covariance function within Matrix class wuth the help of Jama library