Add data preprocessing method transpose and its test.