I'm attaching a VI that should help you. It is just one way that you can do it and probably isn't the most efficient, but it should work just fine for your purposes. The third array from your example isn't really necessary to accomplish what you want, but I put it in anyway. I hope that it helps lead you in the right direction, if anything isn't clear please let me know.
Brian