probtrace function

Function to calculate probability trace lines