I am planning on replacing the galvanized piping in my home, which was built 1950. Replacing hot and cold and waste water pipes..........

What should I use PEX, CPVC or COPPER?

I live in Minnesota so the weather comes into play and I don't want to spend a bundle.

Thanks in advance!