Resize method for pool class.