Implemented Bayesian estimation, but problems inverting pseudo-inverse