I am working in a project of mine and i want to implement pancake sorting in prolog, so far i have made most parts of the algorithm but i need to create the \'function\' tha