ADD:Continue work on the algorithm - Need to implement branching. Majority of code at each node written