Trading calendar fixes

* Don't include New Year's Eve 1999 in early closes returned to the user if it's outside the requested range.
* Use sort() instead of sorted(), for performance.