Hoare partition edit from class