Datas Structure & Algorithm for Programming Contest in JavaScript