first impl of professors algorithm(not tested yet), next is pending requerst algorithm.