Statistical Machine Translation implemented by Scala