everything but the sorting
fixed vector out of bounds issue and initialized the values in the overloaded operators