Preliminary work for fiber sort algorithm.

This is a naive implementation but suffices for now. Related to issue #19