add euler algorithm