Add ndarray dependency