Algorithms for refining triangular grids suitable for adaptive and multigrid techniques | Synapse