There are some toy library programs out there, one off hand is Libratu - <a href="http:&#x2F;&#x2F;www.libratu.com&#x2F;" rel="nofollow">http:&#x2F;&#x2F;www.libratu.com&#x2F;</a> dog slow if you put a lot of data in it but may give you  inspiration.