Max Velocity

second derivative calculation error.