Added an optimizer

Added basic optimizer that maximizes price based on input