Fixed bug in Constraint.c, Added MemoryPool, fixed Rand() function.