Shell sort implemented, Stack implement