Refactored and wrote out some dependencies in ArpaReader and LM.

Makes them more portable, as they are usable in other projects as well.
The main difference is to use stl directly without the wrappers.