optimized encodeByte.

refs #8
added release build option to build in release version.
Code is very well optimized by compiler now.

refs #8
Merge branch '#8-optimization'