Add f-uniquify

This function returns the suffixes of paths such that all are unique. It's similar to what uniquify does.

The implementation is pretty slow, but for reasonable data sets it should perform well enough.