Banker algorithm security algorithm C++ source code