Pls use SGVector here, and not CALLOC. If you need to access pointers, you can do that still.