The federal election in Canada is shaping up to be one of the most closely contested in recent memory.