Changed the getMapSize method to make sure that a new Vector is not created needlessly.