I'm not sure this Koorde implementation is valid :(