Given array or list extracts the elements in this array which is included inside another array
Matlab solution
Mathematica solution
Maple solution
TODO