Vectors

Added vectors and changed data structures around. History is a vector
now. Performance is better but still only around 1400k nps.