Implement hash function in VPFeed

Signed-off-by: Wu Xudong <tikiet@gmail.com>