changed Path constructor to include LCSLen