Development of a hyperbolic equation solver and the improvement of the OpenFOAMR two-phase incompressible flow solver