Implementation of nested triangulation nearly finished.