Banker's algorithm excercise finished!