fix supervised learn bug where startprob matrix was of wrong shape. add check in unittests and validate function to make sure it gets caught next time