Removed waiting for the lock when applying changes and also allowing undos in the tree computation. (#66)