added map and reduce support

trying to familiar myself with dynalint