Design of Novel Mobility and Obstacle-Aware Algorithm for Optimal MANET Routing