Added div_by_col() and div_by_row()

This adds `CUDAMatrix.div_by_col()` and `CUDAMatrix.div_by_row()` along with tests.