add cmp.h & cmp.c
trivial
add sort method