added algorithmic solutions for array rotation and trees and graphs