Created compiled and locally working SPQ implementation