Bug Fixes

- fixed bug in binary search when reaching upper bound
- add 10-point moving average to temperature term