Rename map-aboves-belows -> neighborify
Add indexify function

The positioning algorithm needs to know the index of an item in a layer
both from the top and from the bottom.