Added forward/backward functions. Basic implementation for learning HMM algorithm
UNFINISHED: Copy/pasted connection pool