implemented resized vectors, added test