middlecode - complete
splitintopairs - complete