added phmm algorithm