added stdin functionality to stooge sort