-Added 10 bit max to max.vhd
-Implemented stage 3 and stage 4