A Pre-Programming Approach to Algorithmic Thinking in High School Mathematics