Sub-Index For Critical Points Of Distance Functions