Java implementation of the Travesty algorithm using probability tree structuctures