New functions of the algorithm created in scheduler.py. Some little mods to time_cube.py