issue fixed

The duplicated items have been removed.

Adding header protection for listbuilder.h. Also the testing function in listbuilder.h has been removed, since it is not a good practice to have a exported function in header files.