implemented Vector::max()