Create custom IR for linked list example

See #3.