Algorithm For Greatest Of Three Numbers