Computer arithmetic algorithms