Implementation of pmap using Elixir's built-in tasks