Lane Detection in Complex Environment Using Grid-Based Morphology and Directional Edge-link Pairs