Constructor for a dynamical list
Create a new dynamical list Input: list - an array of integers Output: a new dynamical list