Introduced resize of XYZ arrays, renamed old resize to realloc