Update bmi.php - Optimized and refactored class.

Added optimizations recommended by Donovan Hubbard < http://donovanh.com > and refactored class methods to be less confusing.