Investigation of Immiscible and Miscible Foam for Enhancing Oil Recovery