Events are now dynamic.

Fixed quicksort implementation (higher was not being sorted)