On-line Signature Verification by Adaptively Weighted DP Matching