Update code.

1. Add test cases for sort.
2. Fix bug of initialize buf to 0.
3. Update README.

Signed-off-by: ztzhang <zhentao.zhang@netgear.com>