Added the forward probability computation method with scaling