Update VectorTable.c

Added error handling in case of allocation errors