Fully functional multiple-valued QCA