If I understand your problem correctly, it sounds formally similar to the one discussed in this thread. I think Roy Johnson's solution may be of particular interest to you.
the lowliest monk
In reply to Re: Using vec to search an array
by tlm
in thread Using vec to search an array
by b_hall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |