Optimizing Photometric Redshift Estimation For Large Astronomical Surveys Using Boosted Decision Trees.