Vector class now calculated number of comparisons