simplify BIT
fix ternary search cide
add convex hull optimization for DP
add simpson's method for numerical integration
add geometry template