Added a convenient method the whole dataset in memory.
Targets reshaped to fit adequate data structure.