Changed colros for plotting, added feature to use different algorithms.