Added function maxvel_ke().