1. Merged all functions, including av_velocity() in the serial code
2. -ffast-math brings down the execution time to 43s on asus zenbook :O