Heavily optimized the linear regression algorithm for the real velocity calculation, allowing more samples to be used without noticeable delay.