Identifying Functions from Graphical Patterns