Add dimensionality() method to return cloud dimensionality.