added hsQueensMemoryTest, used the foldable instance of Tree

Still no idea how GC works here..