A Neural Network Based Hazard Detection Algorithm for Planetary Landing