Add Array.slice generic method