Added weighted BaumWelch implementation