public List <Task> addTask(int id_, int timeR_, int timeD_, int timeP1_, int timeP2_)
        {
            orderOfTasks.Add(new Task(id_, timeR_, timeD_, timeP1_, timeP2_));
            CompareTask compareTask = new CompareTask();

            orderOfTasks.Sort(compareTask);
            calculateNewOrder();
            return(orderOfTasks);
        }
        private void calculateNewOrder()
        {
            CompareTask compareTask = new CompareTask();

            orderOfTasks.Sort(compareTask);
            List <Task> Subset = new List <Task>();

            foreach (Task task in orderOfTasks)
            {
                Subset.Add(new Task(task));
                calculateNewOrderOfSubset(Subset);
            }
            orderOfTasks = Subset;
        }