new NDArray implementation pass all tests now