added var to track total nodes
added var to track total number of nodes generated
changed to double
now tries all three algorithms