SalaryLocking implemented and working for both weighted and unweighted versions. Example is at the bottom of the salaryLocking file