Added memory check to keysort to expand heap when overflow
would have occurred. (Last week did same to sort, for forgot this one...)
Authored by: dwarren 2001-08-13
Parent: [r2638]
Child: [r2640]