Algorithm For Time Complexity Of Binary