Finds a maximum subvector of a vector