add wu algorithm (lab part)