Calculate SOG and COG for each race