Added path optimisation.
Merge pull request #111 from adobe-research/pathoptim

Added path optimisation.