Working test program. Modified the root multiply and divide functions to
promote to long and cast back to int.