Dijkstra's Banker's Algorithm for Operating Systems class assignment