implement double list and test it