Pattern Recognition Via Linear Programming: Theory and Application to Medical Diagnosis