As Trump and Harris ride neck-and-neck towards Tuesday's election, here is a guide to how the balloting works.