Refactored vector struct to support ints and floats