add global Error
add process.exit()
update tests
implement array.sort()