Add utility classes, migrated from ImageJ core

Migrated from:
https://github.com/imagej/imagej/tree/imagej-2.0.0-beta-7.9/core/core/src/main/java/imagej/util