Encoder working fully

** Need to make decoder output char*

1. added windows time trials functions for encoder and decoder.
2. split encoder and decoder functions def into two files.
3. further improvement should be done in linux system.