[WIP] add st_distance function