Profile foam cutting machine