java implementation of Freeman K-sets up to KIII-set