Added custom branch calloc
Add calc_residue_flow function
Commented contourtree.h(.cpp)