fix scaling
fix initial values, use scaling
reduce memory usdage of forward alg