Well, I'm quitting this one. I even added some code to verify whether
the generated X array is correct, it passes every time for the small
and large inputs.