solving bugs with hash and unordered_set ==> now scoring 19 on kattis