Parition & swap functions operational.