rankall-prototype

first prototype for rankaal function