made main double-linked binary classes