added badass GPU algorithm