Implemented "MapLogicalToVisualLineIndices" utility and added tests