Primitive method that determines the proper location to insert a new child based on layer and position requests.
Parameters:
layer
position
Returns: an int giving the (absolute) insertion-index
See also: getIndexOf
Diagram: Layers