Total Programs in Algorithm implementation 41