non akka algorithm version (the inefficient one) removed