added space untilization computation function for both trees