wrapped arrays in states to incorporate cost
can produce search interfaces suitable for solving.
added instance generation to pancakes