Recursive Tile Dynamic Programing aproach to Optimal Upswing