added work for filling in an array using GPU