Exact Optimization Of Path-Dependent Performance Measures For Single Asset Trading With Side Information