changed the random subset algorithm. now it returns subset with an even probability. this will both "fairly" insert array[n] into the subset and "fairly" remove a random element from the subset.
some sanity checks for random subset generator