I can't make sense of your code. If it is not very long can you post all of it. If it is long can you make a short version that illustrates the problem?
I noticed a commented out Serial.println(j); followed by a commented out delay(50);. If that delay is used its hardly surprising things are slow.
What baud rate are you using?
...R