Simulation of Three-Dimensional, Two-Phase Flow In Oil and Gas Reservoirs