add performance plotter

and partially implement the hamming-distance-to-naive stuff