Optimized
Differential renamed to dervative
CalculateSpeed function added