fixing bug in lambda visitor test, moved algorithm and optimizer to xacc

Signed-off-by: Alex McCaskey <mccaskeyaj@ornl.gov>
latest
Status Name Job ID Coverage
  Build
canceled docker build #249299