Cuboid class updated to support dynamic changing of size and more efficient managing of vector sets.