On The Theory And Application Of Pattern Maximum Likelihood