Point Cloud Clustering Segmentation Algorithm for Indoor and Outdoor Environments