Implement some convenience methods on vectors