added variable ans which keeps the result of the last successful expression
added some more sorting functions for arrays and lists, they need to be
tested, worked on trees and added promise.c

I'm almost certain that the sorting functions I added won't work. They
definately need to be tested. Tree stuff is still massively incomplete.

However, everything works, the incomplete stuff doesn't actually get
compiled into the actual program.