Looks kind-of like what I subgested, though I've only used a two-element-array.

atiisler: Please read ABC's of KiXtart board etiquette and message to new forum users , Section F. You are changing the scope of your problem. so, please give us the big pictures, purpose, and all.
_________________________
There are two types of vessels, submarines and targets.