Re-added kldiv, and match_arrays function