Developing an Algorithm for a Generic Human Knee Joint Model