A Fast Grid Segmentation Algorithm for Terrain Elements of Features Embedded DEM