Add plot.asy for visualizing output.
dominant_mode now returns interpolated maximum.