Initial commit. Program works, but is very slow at present, and there is room for improvement, especiially in the part that resamples astroids if they are out of bounds