added another algo for getting manchester string from signal