Battery powered mile-long freight trains