Added the planning algorithm which includes opCost/ipCost from previous command in the pipeline. THe opCost is now calculated also considering the nature of the command.