initialize time and space for TSU partially and adjsut space calculation for three datasets