Faster implementation of pluck.

Thanks to @eriknw