ATE learner: Please don't change the subject line. It makes it difficult to follow an original post. Just keep the same subject line and add your comments to the message body.
Instead of 2-D array( the origenal one), after all those changes, I got a 1-D array. (even though I do have all the information I need in the array). I must have done sth wrong. I guess I still need the final code. Thanks.