A simple Python implementation of k-d trees as described by Bently in his paper.