Three arrested for ATM theft after a lengthy car chase