calculating manhattan norm and zero norm