simplified3d.clj: first version of the simplify function