rewrite mancesterEncoder in java from go.
@BOOtak, remove go libs.