Implementation of algorithms in PRML book.