Implement stack using multiple stacks with limit capacity