A Linear Time Algorithm for Finding All Maximal