Adds a faster n-dim k-channel version of extract

Note this needs some more testing. Perf was higher before making it
n_dim - is this worth the trade off?