mapToParent
Highly optimized coordinate mapping for NCHW layout.
This implementation leverages knowledge of NCHW dimension semantics to provide the fastest possible coordinate transformation. Each dimension is handled with specialized logic.