Mapping task graphs onto Network Processors using genetic algorithm