simple implement of lists:map