Added depth() function for vectors.