Some DS stuff, singly-linked lists and binary trees without recursion