add plotting function to display trial steps within the iteration 
algorithm