add vector_equals function