Does GPT Really Get It? A Hierarchical Scale to Quantify Human vs AI's Understanding of Algorithms