allow to shuffle hdf5 input

it should possible to train on hdf5 data in random order. This com-
mit adds a new parameter to specify whether the hdf5 data should be
shuffled or not.