added thrust reduce example and comments