added lcs distance, needs testing, dox. Small bugfix in osa.c