add two algorithms from 1points3acres. Oct 2nd