Digital differential analyzer