create a new array filled with a value, or zero