Cases are now in vectors

Also changed the splitDelim method to not waste memory
Fixed memory issues