Implementation of bankers algorithm in C