Minimum cost content distribution using network coding: Replication vs. coding