Optimising the scheduling of learning units through algorithmisation in secondary education