Some bugs fixed (new test files input/output). Hash function need to be improved!