Edited BCD to decimal function and list elements deletion