Added Amy's clean_memory code, which works with the tested values
Updated some functions because they were broken when testing the algorithm. Algorithm now works with the test graph, should be tested with other graphs of known paths.
Merge pull request #4 from adanmoran/master

Re-syncing