get_clusters_3d function

Extracts events from a three-dimensional data stream