LogReg on GPU
TODO: use different reduction and add matrix transposed copy for optiml performance.