Separate implementation MatrixCovarianceFunction

Fixes an item in #47.