Add operations and tests for resizable arrays. To be used for addition/deletion of centroids