Printing logic moved to the special class
Added simple implementation of forward algorithm