A versatile cellular array for binary arithmetic