marginal_covariances function

estimates marginal covariances (e.g. row and column covariances) of bi-dimensional sample