moving to boost for handling arrays.  This commit is mostly to do with memory allocation for arrays.