Fiddled with user defined typeclasses.
Messed with Data.Dequeue.
Solved labyrinth. Uses a lot of memory. Maybe look into this.