refactor LearnerND._ask to be more readable (and faster)
Closes #72 (closed)
Also does help lot to make the learner faster (from O(N) per ask/tell, now only O(log N))
This certainly can be refactored to be even more readable :), I will make sure of it.
Edited by Bas Nijholt