Implemented the Efros-Freeman algorithm, to make the block synthesis result much more natural