new precomputing and hashin scheme for motif chains