Replace reset function with reset head and reset tail for forward and reverse iteration
List implementation and tests