Moved backtracker algorithm to perfect.lua, also improved commenting a little bit.
Implemented Prim's algorithm.