Wrote custom vector class, replaced all uses of vector with new class