optimize rule lookup by only searching for rules that have prefixes
minor cleanup
Merge github.com:moses-smt/mosesdecoder
optimize rule lookup by only searching for rules that have prefixes
beautify