Added get energy and finish time for the optimal schedule

  For the taskScheduling class