Beat Matching

Hello All,

I basically want to make a mix tape with songs that I have but I have no idea how I can take two songs analyse their tempos and then match them, either retaining pitch or otherwise. Is this possible? If so how can I do this?

Thanks.