added support for rotating trees without uncles