both algorithms seeme to have the same doc string and, more importantly, instructions, so I don't know what the second algorithm is supposed to do or why it has current surface from bin as an argument.