Add matthews coefficient and fix prediction bugs