WIP commit on getting logistic regression layer unit tests tuned correctly
added sparsity parameter to CDk in getGradient() method