Added code for the remove method

Added code for the remove method and added IComparable to TKey.