added some pseudo code for the algorithm