Fix cross-validation, use AbstractVectors where appropriate