public static function registerNamespace($namespace, $directory, $extension = '.php', $prioritize = false)
    {
        if (self::$_namespaces === null) {
            self::$_namespaces = array();
        }

        $directory = str_replace('\\', '/', realpath($directory)) . '/';

        if($prioritize){
            array_unshift(self::$_namespaces, array($namespace, $directory, strlen($namespace), $extension));
        }else{
            self::$_namespaces[] = array($namespace, $directory, strlen($namespace), $extension);
        }
    }