Weighted Differential Invariant Signatures And Applications to Shape Recognition