Finished the banker's algorithm part.