median of two sorted arrays solution added, plus two other solutions with bugs followed