Java implementation of amtip's map generation algorthim