Added equals(Object) and hashCode() to Task

> Overriding Object class functions