MATLAB-like `unique` where you can recreate the original with indices

I’ve posted a pure julia implementation in Unique (indices) method similar to MATLAB - #7 by t-bltg.