Support for reading and scaling problem that comes from dataset.

1. Support for reading and scaling problem that comes from dataset in memory which is in the form of a List<List<double>>.

2. Clean code.