Well. Unlike the singly linked lists this code is mine with all its mistakes and bugs.