Added chaining to boro_reduce_sort_by().
Added chaining to most reduce functions.
Fixed final node test in some reduce functions.