monster algorithm