replaced double vectors with vectors of pairs, giving us quite a bit of performance improvement.