Gravar-mail: Centroid estimation in discrete high-dimensional spaces with applications in biology