User blog comment:Wythagoras/Dollar function: final version/@comment-5150073-20140625065059/@comment-24509095-20140628012452

Well,... it's a 3D matrix. We can represent the blocks using their IDs.