outputLCS finally working, last error due to indexing problem, now solved. alleluia