How To Sort An Array Based Implementation Of Stacks