From Single-Phase To Two-Phase Sharp-Interface Incompressible Viscous Flow Simulation On Distributed Adaptive Quadtree/Octree Grids