Psuedo code for pass12 added and some required cout statements