Dynamic two-phase flow in porous media and its implications in geological carbon sequestration