Internally use doubly-linked list instead of singly-linked list. Also minor fixes related to changing use to doubly-linked list. Removed unnecessary comments. Move list add/remove code to designated functions.
The type definition was a remnant of attempting to use std::unordered_map, but that used whatever the "malloc" symbol pointed to.
Kept in git history just in case.