Added Hashing, refactoring arrays

Signed-off-by: Julien 'Tyloo' Bonvarlet <jbonva@gmail.com>