A unified pore-network algorithm for dynamic two-phase flow. (September 2016)