changes made to extend stack_analyze to handle multiple regions

ADD
n_roi  - number of I regions (only allow 1 Io region)

CONVERT to 1-d arrays (index is region #)
i_roi
i_color_index