first dirty implementation of Tikhonov regularization


This is a very preliminary implementation of a non-flat prior. It seems to work, but the code needs a lot of work.
I'm submitting the pull request so that we focus on this.