udpate submodule ndarray
code refactoring