for something as specialized as this, i suggest not looking here. google around for third party libraries, look at source code for open source projects that do this, or ask an algorithms professor for tips. if you need something very specific to matlab and not a general algorithm, then post job ads for matlab contractors.