added first version of calibration matrix estimator, still not passing the test