Added gui part 3.
Improved performance of algorithms, but still not very fast. Still room for improvement, though.