Added bulkmap, bulkreduce and changed apply funtion to polimorphizm