Added equals method to Vector and test case.

Added test case to TestVector to test for 0-length vectors behaving
correctly. Had to add equals() method for the test to work.