memory usage optimizations for read and write operations

The ```*``` should go with variable name instead of type, i.e. ```bool *columnMask``` instead ```bool* columnMask```.