Added tests for scale_samples
Changed scale_samples to inplace numpy operation