[MRG] refactor package structure and add new utility functions

* Split ``_root_numpy.py`` into separate modules for each category of functions
* Add ``rec2array`` to convert a record array into a ndarray of homogeneous dtype
* Add ``stack`` for stacking record arrays
* Add ``dup_idx`` for determining the indices of all duplicates elements in an array