Calculating Center Of Gravity For A Triangle