sem2hw5task1: Moved hash functions into individual file.