add Makefile and segment_tree.c
add fenwick_tree.c
add heap.c and heap.h
add common.h
add search.c and search.h
rewrite segment_tree.c and add segment_tree.h