Reduction shader re-implemented and debugged
Changes made on train