Add new parameters to Partition function

Range s_r and Range t_r record the range in order to generate hasp map