Fork from UMAP (https://bitbucket.org/yohanboniface/umap)