add segment tree

Signed-off-by: Wei Jin <wjin.cn@gmail.com>
add heap application

Signed-off-by: Wei Jin <wjin.cn@gmail.com>