Reorganization + scatter functions on CPU