Added working AllYourBase for both large and small input