Dense GPU kernel re-written from scratch