BlackBerry finally surprises market in a good way by posting quarterly profit