Go Implementation of higher-order functions {map, reduce, filter}