Partly implemented decision tree aligned collation algorithm based on a* graph search algorithm.