X has open sourced its new algorithm, with owner Elon Musk defending it as users responded to the changes with criticism.