change array order in cnpy
weight API is ready
weight API is almost ready