add new alg to calculate the center point in tracking