An efficient computer algorithm for the calculation of Walsh transform for completely and incompletely specified multiple-valued input binary functions