def square
empty if empty array
square each numbers in array