Program to sort an array containing 0's and 1's only