how canadian legal system works