list: clean up function signatures using newly defined types.
list: clean up function signatures using newly defined types.

nguyentu1602/algorithm-tdd,nguyentu1602/algorithm-tdd,nguyentu1602/algorithm-tdd