Don't save x values in an array. We only really need them once at the beginning.