Subtask 1; created struct of space point coordinate;
sorted points by z coordinate; defined tha smallest space between points.