Added Weighted HMM implemenation