Text this: Optimal Control of Polymer Flooding Based on Maximum Principle