Added useful methods to the vector and cubiod classes