My project for CS4121 (Adv. Algorithms) at UNSW.