Dense Cores in The Pipe Nebula: An Improved Core Mass Function