int clen(List<int> cf, List<int> cl) { int l = 0; for (int i = 0; i < cl.length; ++i){ l += cf[i] * cl[i]; } return l; }