--- from: http://rosettacode.org/wiki/Minkowski_question-mark_function