first cut at memRealloc