Real-Time 3D Reconstruction And Semantic Segmentation Using Multi-Layer Heightmaps