An algorithm used to generate caves in java.