added spatial index, used to optimize label positioning
removed slow code path from label positioning