Add stack; Function to get first and last on Array