Revert "hw1"

This reverts commit 716cb6c94251349a53396d2ef2f3e8a9db6bfbb1.
Updated code to calculate bin2gray and gray2bin