Created a simple mutex implementation

Created a mutex implementation and changed the way the scheduler is
called at every tick time.
Files relocated

Files with function calls tightly coupled to a specific architecture
were relocated on it's specific folder.