Some algorithms used frequently