getBestLabelSequence and getScoreMatrix modified