The longest filled common subsequence problem