So this sample code gives output like
NextIteration What i get [0, 0, 0, 0] What i need [0, 0, 0, 0] NextIteration What i get [1, 0, 0, 0] What i need [0, 0,