fixed the problem I caused
added foldr1 method to Vect type