(C++) Added addToList(int data, int pos)
(C++) Refactoring test