An Occupancy Mapping Method Based on K-Nearest Neighbours