New NDArray implementation

Cleaned & simplified, passes tests w/o errors or warnings.