propagation-assissted kd-tree search added, but not well debugged yet
fixed bugs in WH transform, some code compression