Phase 2 : Partially completed.Fixed few bugs:Add and GetNext

Fixed bugs related to Insertion and GetNext.