Lap time optimisation for racecar analysis