Fix columnwise operations.

Fixed operations that were working row wise to work column wise. The encryption works as expected and passes the test. But I found two brittle tests that need to fixed.