implemented bigram model

fixes #82