Optimization algorithms for generator and checker function.
Merge branch 'dev'

Optimization algorithms
For Sender fixed __generator algorithms
For Receiver fixed __checker algorithms
more clear and more readable!