Forward and backward algorithm, need to write tests still