implement erosion, dilatation tp6, auto-organise code and improve import with intelliJ