class to sort all 0s in an array to the right