Glentoran book their place in the Irish Cup quarter-finals as they beat Linfield 2-1 after extra-time with substitute Finley Thorndike scoring a fine winner at the Oval.