Thank you for the quick answer! I found another solution, but I like yours more. Anyway you could work with matrix indices.
Image may be NSFW.
Clik here to view.
There was an unanswered question where someone did it this way, just found it by accident.