max thread number is now confined by n^0.25, as suggested by hogwild!
paper, also moved shuffling to work concurrently with sgd

Signed-off-by: peng <pc175@uow.edu.au>