added hungarian from top coder