Implemented ok_dlist_get_head and ok_dlist_get_tail.