bank algorithm added